layui.define([ 'form', 'laydate' ], function(exports) {
    var form = layui.form;
    var laydate = layui.laydate;
    var view ={
        init:function(){
            this.initSearchForm();
            $("#linkDiv").click(function(){
                var url = Common.ctxPath+"/coop/examPapers/phone.do?regTimeQuery="+$("#regTimeQuery").val();
                window.open(url);
            });
        },
        initSearchForm:function(){
            var url = '/coop/examPapers/customerCount.json';
            Lib.initSearchForm1( form,url,$("#searchForm"),[],function (data) {
                $("#countDiv").text(data);
                if (data>0) {
                    $("#linkDiv").removeClass("layui-hide");
                } else {
                    $("#linkDiv").addClass("layui-hide");
                }
            });
        }
    }
    exports('customer',view);

});